package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.ProImagesMapper;
import com.ruoyi.product.domain.ProImages;
import com.ruoyi.product.service.IProImagesService;

/**
 * 商品图片Service业务层处理
 * 
 * @author admin
 * @date 2023-10-16
 */
@Service
public class ProImagesServiceImpl implements IProImagesService 
{
    @Autowired
    private ProImagesMapper proImagesMapper;

    /**
     * 查询商品图片
     * 
     * @param id 商品图片主键
     * @return 商品图片
     */
    @Override
    public ProImages selectProImagesById(Long id)
    {
        return proImagesMapper.selectProImagesById(id);
    }

    /**
     * 查询商品图片列表
     * 
     * @param proImages 商品图片
     * @return 商品图片
     */
    @Override
    public List<ProImages> selectProImagesList(ProImages proImages)
    {
        return proImagesMapper.selectProImagesList(proImages);
    }

    /**
     * 新增商品图片
     * 
     * @param proImages 商品图片
     * @return 结果
     */
    @Override
    public int insertProImages(ProImages proImages)
    {
        return proImagesMapper.insertProImages(proImages);
    }

    /**
     * 修改商品图片
     * 
     * @param proImages 商品图片
     * @return 结果
     */
    @Override
    public int updateProImages(ProImages proImages)
    {
        return proImagesMapper.updateProImages(proImages);
    }

    /**
     * 批量删除商品图片
     * 
     * @param ids 需要删除的商品图片主键
     * @return 结果
     */
    @Override
    public int deleteProImagesByIds(Long[] ids)
    {
        return proImagesMapper.deleteProImagesByIds(ids);
    }

    /**
     * 删除商品图片信息
     * 
     * @param id 商品图片主键
     * @return 结果
     */
    @Override
    public int deleteProImagesById(Long id)
    {
        return proImagesMapper.deleteProImagesById(id);
    }
}
